package com.springboot.springbootweb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.springboot.springbootweb.model.JcUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author gwj
 * @since 2021-09-11
 */
@Mapper
public interface JcUserMapper extends BaseMapper<JcUser> {

    @Select("select * from jc_user ")
    List<JcUser> getAllUserPage();


    IPage getAll(Page page, @Param("id") int id);
}
